home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7669 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  953 b 

  1. Path: isonews.bbn.hp.com!hpbblb!news
  2. From: Matthias Dittrich <matti>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Pattern matching in C
  5. Date: 26 Feb 1996 07:41:07 GMT
  6. Organization: Hewlett-Packard Co.
  7. Message-ID: <4gro6j$2mv@hpbblb.bbn.hp.com>
  8. References: <4gjo68$jpp@paperboy.ids.net>
  9. NNTP-Posting-Host: trabant.bbn.hp.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (X11; I; HP-UX A.09.07 9000/712)
  14. X-URL: news:4gjo68$jpp@paperboy.ids.net
  15.  
  16. scarney@conan.ids.net (scarney) wrote:
  17. >
  18. >I'm trying to do some text file pattern matching. Using a simple while 
  19. >loop that has a <data> != <j.random string> in its conditional doesn't 
  20. >work. Depending on different ways of doing it, you get a segmentation 
  21. >fault, random output, or no output.
  22. >
  23. It seems you are using a wrong method to compare strings or wrong
  24. pointers. Please send a piece of code, then we can help you.
  25.  
  26. Good luck,
  27. Matthias
  28.  
  29.